import 'package:flutter/material.dart';

import '../../config/public_color.dart';

/// FileName public_box_shadow
///
/// @Author lax
/// @Date 2023/3/31
///
/// @Description

class PublicBoxShadow extends BoxShadow {
  /// 默认阴影颜色
  static Color? defaultShadowColor;

  static double defaultBlurRadius = 5;

  static double defaultSpreadRadius = 0;

  PublicBoxShadow({
    Color? color,
    Offset offset = Offset.zero,
    double? blurRadius,
    double? spreadRadius,
    BlurStyle blurStyle = BlurStyle.normal,
  }) : super(
          color: color ?? defaultShadowColor ?? PublicColor.shadow,
          offset: offset,
          // 阴影模糊程度
          blurRadius: blurRadius ?? defaultBlurRadius,
          // 阴影扩散程度
          spreadRadius: spreadRadius ?? defaultSpreadRadius,
          blurStyle: blurStyle,
        );
}
